﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ParamDetail.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Template.Template.ParamDetail"  ValidateRequest="False"%>

<%@ Import Namespace ="ZLCMS.Business" %>
<%@ Import Namespace ="ZLCMS.Business.Util" %>
<form id="pageForm" runat="server">

    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">
        <input id="code" type="hidden" value=''/>
        
        <dl>
            <dt>参数代码：</dt>
            <dd>
                <input id="paramCode" type="text" />
            </dd>
        </dl>     
         
         
        <dl>
            <dt>参数名：</dt>
            <dd>
            
                <input id="paramName" type="text" />
            </dd>
        </dl>    
           
        <dl>
            <dt>参数值：</dt>
            <dd>
                <textarea id="paramValue" cols="50" rows="2"></textarea>
            </dd>
        </dl>    

           
        
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button  type="button"  onclick="saveParam();" class="close">保存</button></div></div>
            </li>
            
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>
    
<script type="text/javascript">
    function saveParam() {
        dialogResult = {};
        dialogResult.ParamCode = $('#paramCode', $.pdialog.getCurrent()).val();
        dialogResult.ParamName = $('#paramName', $.pdialog.getCurrent()).val();
        dialogResult.ParamValue = $('#paramValue', $.pdialog.getCurrent()).val();
    }

    $(document).ready(function () {

        var param = <%=Request["object"] %>;

        $('#paramCode', $.pdialog.getCurrent()).val(param.ParamCode);
        $('#paramName', $.pdialog.getCurrent()).val(param.ParamName);
        $('#paramValue', $.pdialog.getCurrent()).val(param.ParamValue);
    });
</script>